package jejunu.androboys.Splash;

import jejunu.androboys.QuickCall.R;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;


class SplashType{
	public static int Start = 1;
	public static int Finish = 2;
}

class SetSplash extends Handler {
	 private Activity  mActivity;
	 private View mBackGourd;
	 
	 public SetSplash(Activity act){
		 mActivity = act;
		 mBackGourd = act.findViewById(R.id.backGround);
	 }
	 
	 
	 @Override
	public void handleMessage(Message msg) {
		 
		 Bundle dataSet = msg.getData();
		 int splashType = dataSet.getInt("Logo");
		 
		 if(splashType == SplashType.Start){
			 mBackGourd.setBackgroundResource(R.drawable.logo);
		 }
		 else{
			 mActivity.finish();
		 }
		// TODO Auto-generated method stub
		super.handleMessage(msg);
	}

	
	 
}
